package com.heima.test9;

public class LiangLiang extends Thread {
    public LiangLiang(String name) {
        super(name);
    }

    @Override
    public void run() {
        while (true) {
            synchronized (this) {
                if (Money.money != 100000) {
                    System.out.println("结婚基金已经不是十万了");
                    break;
                }
            }
        }
    }
}